using System;
using System.Collections;
using System.Web.UI.WebControls;
using System.Web.UI;
using System.ComponentModel;
using System.ComponentModel.Design;
using AjaxControlToolkit;

#region [ Resources ]

[assembly: System.Web.UI.WebResource("ImageCropper.ImageCropperBehavior.js", "text/javascript")]
[assembly: System.Web.UI.WebResource("ImageCropper.ImageCropper.css", "text/css", PerformSubstitution = true)]

#endregion

namespace ImageCropper
{
    [Designer(typeof(ImageCropperDesigner))]
    [TargetControlType(typeof(Image))]
    [ClientCssResource("ImageCropper.ImageCropper.css")]
    [ClientScriptResource("ImageCropper.ImageCropperBehavior", "ImageCropper.ImageCropperBehavior.js")]
    public class ImageCropperExtender : ExtenderControlBase
    {
        [ExtenderControlProperty]
        public string Preview
        {
            get
            {
                return GetPropertyValue<string>("Preview", "");
            }
            set
            {
                SetPropertyValue<string>("Preview", value);
            }
        }
    }
}
